'use strict'

class user {

  constructor (mdb) {
    this.db = mdb
    this.tableName = 'shop'
  }

  model () {
    return this.db.model(this.tableName)
  }
  
  async list () {
    let ulist = await this.model().limit(20).select()
    return ulist.rows
  }

}

module.exports = user